----------------------------------------------------------------------------------------------------------------------------------
--[[

    技能控制器

]]--
----------------------------------------------------------------------------------------------------------------------------------
local loramia_com_spell_controller = Class(function(self, inst)
    self.inst = inst
    self.classified = nil
end)
------------------------------------------------------------------------------------------------------------------------------
---
    function loramia_com_spell_controller:AttachClassified(classified)
        self.classified = classified
    end
------------------------------------------------------------------------------------------------------------------------------
---
    function loramia_com_spell_controller:NetSetData(index,value)
        if self.classified == nil then
            return
        end
        self.classified:Set(index,value)
    end
    function loramia_com_spell_controller:NetGetData(index,default)
        if self.classified == nil then
            return default
        end
        return self.classified:Get(index) or default
    end
------------------------------------------------------------------------------------------------------------------------------
--- 
    function loramia_com_spell_controller:IsReady(index)
        return self:NetGetData(index) == 0
    end
------------------------------------------------------------------------------------------------------------------------------
return loramia_com_spell_controller







